<?php

namespace common\models\linkedcare;

use Yii;

/**
 * This is the model class for table "fy_linkedcare_patients_record".
 *
 * @property int $id
 * @property int|null $record_id 患者就诊记录自增ID（E看牙）
 * @property string|null $startTime 就诊开始时间
 * @property string|null $endTime 就诊结束时间
 * @property string $jz_year 就诊年
 * @property string $jz_date 就诊日期
 * @property string $jz_time 就诊时间段
 * @property string $privateId 患者诊疗号
 * @property int|null $officeId 操作诊所ID
 * @property int|null $doctorId 医生ID
 * @property string|null $doctorName 医生
 * @property string|null $department 预约科室
 * @property int|null $consultantId 咨询师ID
 * @property string|null $consultantName 咨询师
 * @property string $current_status 当前预约状态
 * @property string|null $checkInType
 * @property int|null $appointmentType 状态：0： 预约 1：到店
 * @property string|null $chargeOrderId 付款订单ID
 * @property string $isCheckedIn
 * @property string $isSeated
 * @property string $isCompleted
 * @property string $isCheckedOut
 * @property string $isLeft
 * @property string $isCancelled
 * @property string $isFailed
 * @property string $isPending
 * @property string $isConsulting
 * @property string|null $notes 备注
 * @property int|null $recordCreatedUser 该条记录创建人ID
 * @property string|null $recordCreatedUserName 该条记录创建人
 * @property string|null $recordCreatedTime 该条记录创建时间
 * @property string|null $transactionName 检查的项目
 * @property int $status 状态【-1删除、0禁用、1启用】
 * @property string $created_time 创建时间
 * @property string $updated_time 更新时间
 */
class LinkedcarePatientsRecord extends \common\models\base\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'fy_linkedcare_patients_record';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['record_id', 'officeId', 'doctorId', 'consultantId', 'appointmentType', 'recordCreatedUser', 'status'], 'integer'],
            [['startTime', 'endTime', 'recordCreatedTime', 'created_time', 'updated_time'], 'safe'],
            [['notes'], 'string'],
            [['jz_year', 'jz_date', 'jz_time', 'doctorName', 'department', 'current_status', 'checkInType', 'chargeOrderId', 'recordCreatedUserName', 'transactionName'], 'string', 'max' => 100],
            [['privateId'], 'string', 'max' => 50],
            [['consultantName'], 'string', 'max' => 255],
            [['isCheckedIn', 'isSeated', 'isCompleted', 'isCheckedOut', 'isLeft', 'isCancelled', 'isFailed', 'isPending', 'isConsulting'], 'string', 'max' => 30],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'record_id' => '患者就诊记录自增ID（E看牙）',
            'startTime' => '就诊开始时间',
            'endTime' => '就诊结束时间',
            'jz_year' => '就诊年',
            'jz_date' => '就诊日期',
            'jz_time' => '就诊时间段',
            'privateId' => '患者诊疗号',
            'officeId' => '操作诊所ID',
            'doctorId' => '医生ID',
            'doctorName' => '医生',
            'department' => '预约科室',
            'consultantId' => '咨询师ID',
            'consultantName' => '咨询师',
            'current_status' => '当前预约状态',
            'checkInType' => 'Check In Type',
            'appointmentType' => '状态：0： 预约 1：到店',
            'chargeOrderId' => '付款订单ID',
            'isCheckedIn' => 'Is Checked In',
            'isSeated' => 'Is Seated',
            'isCompleted' => 'Is Completed',
            'isCheckedOut' => 'Is Checked Out',
            'isLeft' => 'Is Left',
            'isCancelled' => 'Is Cancelled',
            'isFailed' => 'Is Failed',
            'isPending' => 'Is Pending',
            'isConsulting' => 'Is Consulting',
            'notes' => '备注',
            'recordCreatedUser' => '该条记录创建人ID',
            'recordCreatedUserName' => '该条记录创建人',
            'recordCreatedTime' => '该条记录创建时间',
            'transactionName' => '检查的项目',
            'status' => '状态【-1删除、0禁用、1启用】',
            'created_time' => '创建时间',
            'updated_time' => '更新时间',
        ];
    }
}
